<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .tx-nav {
            height: 100px;
            width: 100%;
            background-color: #1479d7;
        }

        .tx-nav ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .tx-nav ul li {
            float: left;
            width: 100px;
            height: 100px;
            line-height: 100px;
            text-align: center;
        }

        .tx-nav ul li a {
            color: #fff;
            text-decoration: none;
            font-size: 32px;
        }

        .tx-nav ul li:hover {
            background-color: #808080;
        }
    </style>
</head>

<body>
    <div class="tx-nav">
        <ul>
            <li><a href="#">新闻</a></li>
            <li><a href="#">视频</a></li>
            <li><a href="#">图片</a></li>
            <li><a href="#">军事</a></li>
            <li><a href="#">体育</a></li>
            <li><a href="#">NBA</a></li>
        </ul>
    </div>
</body>

</html>